package com.john.test.http.proxy.parser;


import com.john.http.core.parser.AbstractHtmlItemParser;
import com.john.test.http.proxy.data.ProxyItem;
import com.john.http.core.parser.config.HtmlParseConfig;
import com.john.http.core.parser.config.HtmlParseConfigItem;
import com.john.http.core.util.SimpleBeanUtil;
import org.apache.commons.lang3.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.reflect.Proxy;
import java.util.LinkedList;
import java.util.List;

/**
 * 〈一句话功能简述〉<br/>
 * 〈功能详细描述〉
 *
 * @author jiangguangtao on 2016/4/28.

 */
public class TabledProxyItemParser extends AbstractHtmlItemParser<ProxyItem> {

    public TabledProxyItemParser(HtmlParseConfig parseConfig) {
        super(parseConfig);
    }

    @Override
    protected boolean isValidBean(ProxyItem bean) {
        return null != bean && bean.isValidPi();
    }

    @Override
    protected ProxyItem createNewBean() {
        return new ProxyItem();
    }
}
